package com.aterrizar;

import java.util.Calendar;
import java.text.ParseException;
import java.text.SimpleDateFormat;

public class ISO8601 extends Parseador {

	@Override
	public Calendar formatear(String cadena) throws ParseException {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		sdf.setLenient(false);
		Calendar fechaFinal = Calendar.getInstance();
		fechaFinal.setTime(sdf.parse(cadena));
		return fechaFinal;
	}

}
